<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="com.card.admin.pojo.*,java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	Admin admin = (Admin) session.getAttribute("admin");
	if (admin == null) {
		try {
			response.sendRedirect("/GameServer/error.jsp");
		} catch (Exception e) {
		}
		return;
	}
	int group = admin.getGroup();
%>
<body>
	<!-- Header -->
	<header id="top">
	<div class="wrapper">
		<!-- Title/Logo - can use text instead of image -->
		<div id="title">
			<img SRC="/GameServer/img/logo.png" alt="Administry" />
			<!--<span>Administry</span> demo-->
		</div>
		<!-- Top navigation -->
		<div id="topnav">
			<a href="#"><img class="avatar" SRC="/GameServer/img/user_32.png"
				alt="" /></a> 用户名： <b> <%=admin.getName()%>
			</b> <span>|</span> <a href="/GameServer/logout">登出</a><br />
		</div>
		<!-- End of Top navigation -->
		<!-- Main navigation -->
		<nav id="menu"> <%
 	if (group == 1) {
 %>
		<ul class="sf-menu">
			<li class="current"><a HREF="/GameServer/agent.jsp">代理用户</a></li>
			<li class="current"><a HREF="/GameServer/NoticeShow.jsp">公告数据</a></li>
			<li class="current"><a HREF="/GameServer/wx.jsp">系统数值配置</a></li>
			<li class="current"><a HREF="/GameServer/agent_info.jsp">玩家数据</a></li>
			<li class="current"><a href="/GameServer/share.jsp" >分享数值配置</a></li>
			<li class="current"><a href="/GameServer/fangka.jsp" >房卡数值配置</a></li>
			<li class="current"><a href="/GameServer/Advice.jsp">玩家反馈</a></li>
			<li class="current"><a href="/GameServer/matchlist.jsp">比赛列表</a></li>
			<li class="current"><a href="/GameServer/online.jsp" >在线数据</a></li>
			<li class="current"><a href="/GameServer/cz_log.jsp" >玩家房卡日志</a></li>

		</ul>
		<%
			} else {
		%>
		<ul class="sf-menu">
			<li class="current"><a HREF="/GameServer/agent_info.jsp">玩家信息</a>
			</li>
			<li class="current"><a HREF="/GameServer/seller_log.jsp">出售记录</a>
			</li>
			<li class="current"><a HREF="/GameServer/cz_log.jsp">充值记录</a></li>
		</ul>
		<%
			}
		%> </nav>
		<!-- End of Main navigation -->
		<!-- Aside links -->
		<!-- End of Aside links -->
	</div>
	</header>
</body>
</html>